package lzyc.pointsManagement.business.service;


import lzyc.pointsManagement.business.attachment.dto.AttachmentsDto;
import lzyc.pointsManagement.common.response.ResponseMessage;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
* @author liuyuan
* @description 针对表【attachments】的数据库操作Service
* @createDate 2024-03-09 21:19:29
*/
public interface AttachmentsService {
    void addAttachmentsDto(AttachmentsDto attachments);
    void updateAttachmentsDto(AttachmentsDto attachments);

    void batchUpdateBizIds(List<String> ids, String bizId);
    void deleteAttachmentsDto(String id);
    ResponseMessage selectAttachmentsDtoById(String id);
    List<AttachmentsDto> selectAttachmentsDtoList();
    List<AttachmentsDto> selectAttachmentsDtoListByPage(int page, int size);
    int countAttachmentsDtoList();
    AttachmentsDto getAttachmentsDtoById(String id);
    ResponseMessage getAttachmentsDtoByName(String name);
    ResponseMessage getAttachmentsDtoByPath(String path);
    ResponseMessage getAttachmentsDtoByType(String type);
    ResponseMessage fileUpload(MultipartFile file, AttachmentsDto dto);


}
